import React from 'react';
import { Route, Router } from 'react-router-dom';
import history from './history';
import Login from './pages/login/Login';
import Process from './pages/process/Process';
import Operation from './pages/operation/Operation';
import Manage from './pages/manage/Manage';
import Operator from './pages/operator/Operator';

const RouterConfig = () => (
  <Router history={history}>
    <Route exact path="/" component={Login} />
    <Route path="/process" component={Process} />
    <Route path="/operation" component={Operation} />
    <Route path="/manage" component={Manage} />
    <Route path="/operator" component={Operator} />
  </Router>
);
export default RouterConfig;
